package com.gxa.order.controller;/*
 *Created by${妄也} on 2022/10/9
 */

import com.gxa.common.commons.JsonResult;
import com.gxa.common.commons.R;
import com.gxa.order.pojo.Bannerb;
import com.gxa.order.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

@RestController
@RequestMapping("/banner")
public class BannerController {
    @Autowired
    private BannerService bannerService;

    @PostMapping("/findbanner")
    public JsonResult findbanner(@RequestBody HashMap map){

        return bannerService.findbanner(map);
    }
    @GetMapping("/addbanner")
    public R addbanner(Bannerb bannerb){

        return bannerService.addbannner(bannerb);
    }
    @GetMapping("/updata")
    public R updata(String id,String status){

        return bannerService.updatabanner(id,status);
    }


}
